#include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;

int main()
{
	//ifstream in("dataset.dat", ios::in);
	FILE *in=fopen("dataset.dat","r");
	ofstream out("freq.dat",ios::out);
	long long int *result=(long long int*)malloc(sizeof(long long int)*2097152);
	long long int x;
	char tmp1[64];
	char tmp2[64];
	for(int i=0;i<2097152*2;i++){
		//fscanf(in, "%[^,],%s", tmp1, tmp2);
		fscanf(in, "%s", tmp1);
		result[atoi(tmp1)-1]++;
	}

	for(int j=0;j<2097152;j++){
		out<<result[j]<<endl;
	}
	free(result);
	fclose(in);
	out.close();
}
